package esempi;

import java.util.Scanner;
import java.util.StringTokenizer;

public class Valutaespressione {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String linea = sc.nextLine();
		StringTokenizer st = new StringTokenizer(linea, "+-*/", true);
		int ris = Integer.parseInt(st.nextToken());
		while (st.hasMoreTokens()) {
			char op = st.nextToken().charAt(0);
			int opnd = Integer.parseInt(st.nextToken());
			switch (op) {
			case '+':
				ris = ris + opnd;
				break;
			case '-':
				ris -= opnd;
				break;
			case '*':
				ris *= opnd;
				break;
			case '/':
				ris /= opnd;
				break;
			default:
				throw new RuntimeException("Espressione malformata");
			}// switch

		}// while
		System.out.println(linea + "=" + ris);
		sc.close();
	}// main

}// valuta espressione 
